package org.sample.programs.ui.phone;

import org.sample.programs.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;


public class MainActivity extends Activity
{
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main); 
    }

    public void getUserYouTubeFeed(View v)
    {
    	Intent intent = new Intent(MainActivity.this,VideoWithTitleActivity.class);
		intent.putExtra("Find", 1);
		final int result = 1;
		startActivityForResult(intent, result);
    }
   
    public void getUserYouTubeFeedCatagory(View v)
    {	
    	Intent intent = new Intent(MainActivity.this,VideoWithCatogoryActivity.class);
		intent.putExtra("Find", 1);
		final int result = 1;
		startActivityForResult(intent, result);
    }
    
    public void getUserYouTubeFeedCatagoryWithCustomDialog(View v)
    {	
    	Intent intent = new Intent(MainActivity.this,VideoWithCustomDialog.class);
		intent.putExtra("Find", 1);
		final int result = 1;
		startActivityForResult(intent, result);
    }
    
}